//
//  HSYGoToAuditUtil.m
//  HSY
//
//  Created by 陈浩 on 2017/4/7.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYGoToAuditUtil.h"
#import "HSYFillInformationViewController.h"
#import "HSYShopPhotosViewController.h"
#import "HSYCorporateInformationViewController.h"
#import "HSYAccountInformationViewController.h"
#import "AppDelegate.h"

@implementation HSYGoToAuditUtil

+ (void)goAuditFromViewController:(UIViewController *)viewController push:(BOOL)push{
    UIViewController *vc = nil;
    
    if ([HSYUserCenter instatce].appAuUser.auStep ==0) {
        vc = [[HSYFillInformationViewController alloc] init]; //填写店铺资料
    }
    
    if ([HSYUserCenter instatce].appAuUser.auStep ==1) {
        vc = [[HSYShopPhotosViewController alloc] init]; //店铺照片
    }
    
    if ([HSYUserCenter instatce].appAuUser.auStep ==2) {
        vc = [[HSYCorporateInformationViewController alloc] init]; //法人信息
    }
    
    if ([HSYUserCenter instatce].appAuUser.auStep ==3) {
        vc = [[HSYAccountInformationViewController alloc] init]; //结算信息
    }
    
    if (!push) {
        HSYBaseNavigationController *nav = [HSYBaseNavigationController navigtationControllerWithRootViewController:vc];
        [viewController presentViewController:nav animated:YES completion:nil];
    }else{
        [viewController.navigationController pushViewController:vc animated:YES];
    }
    
    
}

@end
